package com.grapro.visitorsystem.constant;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ConfigurationProperties(prefix = "exception")
@PropertySource("classpath:backup/constant/constant.properties") // 字段一一对应
public class ExceptionConst {
    public String UNKNOW;

    public Integer UNKNOW_CODE;

    public String SQL_ERROR;

    public Integer SQL_ERROR_CODE;

    public String HTTP_METHOD_ERROR;

    public Integer HTTP_METHOD_ERROR_CODE;

    public String NO_METHOD;

    public Integer NO_METHOD_CODE;

    public String TOKENT_LOSE_EFFICACY;

    public Integer TOKENT_LOSE_EFFICACY_CODE;

    public String NO_AUTHORITY;

    public Integer NO_AUTHORITY_CODE;

    public String REQUEST_ERROR;

    public Integer REQUEST_ERROR_CODE;

    public void setUNKNOW(String UNKNOW) {
        this.UNKNOW = UNKNOW;
    }

    public void setUNKNOW_CODE(Integer UNKNOW_CODE) {
        this.UNKNOW_CODE = UNKNOW_CODE;
    }

    public void setHTTP_METHOD_ERROR(String HTTP_METHOD_ERROR) {
        this.HTTP_METHOD_ERROR = HTTP_METHOD_ERROR;
    }

    public void setHTTP_METHOD_ERROR_CODE(Integer HTTP_METHOD_ERROR_CODE) {
        this.HTTP_METHOD_ERROR_CODE = HTTP_METHOD_ERROR_CODE;
    }

    public void setNO_METHOD(String NO_METHOD) {
        this.NO_METHOD = NO_METHOD;
    }

    public void setNO_METHOD_CODE(Integer NO_METHOD_CODE) {
        this.NO_METHOD_CODE = NO_METHOD_CODE;
    }

    public void setTOKENT_LOSE_EFFICACY(String TOKENT_LOSE_EFFICACY) {
        this.TOKENT_LOSE_EFFICACY = TOKENT_LOSE_EFFICACY;
    }

    public void setTOKENT_LOSE_EFFICACY_CODE(Integer TOKENT_LOSE_EFFICACY_CODE) {
        this.TOKENT_LOSE_EFFICACY_CODE = TOKENT_LOSE_EFFICACY_CODE;
    }

    public void setNO_AUTHORITY(String NO_AUTHORITY) {
        this.NO_AUTHORITY = NO_AUTHORITY;
    }

    public void setNO_AUTHORITY_CODE(Integer NO_AUTHORITY_CODE) {
        this.NO_AUTHORITY_CODE = NO_AUTHORITY_CODE;
    }

    public void setREQUEST_ERROR(String REQUEST_ERROR) {
        this.REQUEST_ERROR = REQUEST_ERROR;
    }

    public void setREQUEST_ERROR_CODE(Integer REQUEST_ERROR_CODE) {
        this.REQUEST_ERROR_CODE = REQUEST_ERROR_CODE;
    }

    public void setSQL_ERROR(String SQL_ERROR) {
        this.SQL_ERROR = SQL_ERROR;
    }

    public void setSQL_ERROR_CODE(Integer SQL_ERROR_CODE) {
        this.SQL_ERROR_CODE = SQL_ERROR_CODE;
    }
}